//
//  registView.m
//  My - douban
//
//  Created by dllo on 15/11/1.
//  Copyright (c) 2015年 张鸿峰. All rights reserved.
//

#import "registView.h"

@implementation registView

- (void)dealloc
{
    [_leftLabel release];
    [_rightTextField release];
    [super dealloc];
}


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatSubviews];
    }
    return self;
}

- (void)creatSubviews
{
    self.leftLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 100, self.frame.size.height)];
    [self addSubview:self.leftLabel];
//    self.leftLabel.backgroundColor = [UIColor redColor];
    [self.leftLabel release];
    
    self.rightTextField = [[UITextField alloc] initWithFrame:CGRectMake(self.leftLabel.frame.origin.x + self.leftLabel.frame.size.width, self.leftLabel.frame.origin.y, 200, self.leftLabel.frame.size.height)];
    self.rightTextField.borderStyle = UITextBorderStyleRoundedRect;
    self.rightTextField.clearButtonMode = UITextFieldViewModeAlways;
    [self addSubview:self.rightTextField];
    [self.rightTextField release];
    
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
